﻿<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

	<xsl:template match="/">
    		<span class="fontBlueB8">
    			<xsl:text>POI count: </xsl:text> 
            	<xsl:value-of select = "count(//POI)" />
            	<br/>
            </span>
            
			<table border="0" cellspacing="0" cellpadding="3" class="poiTable">         			
				<tr class="poiTableB">
					<td align="center" width="20" collspan="2">action</td>								
					<td align="center" width="100">LON</td>				
					<td align="center" width="100">LAT</td>				
					<td align="center" width="200">TEXT</td>				
					<td align="center" width="50">CATEGORY</td>				
				</tr>
				<tr>
					<td colspan="6" class="rowBlue1Px"></td>
				</tr>
		
				<xsl:apply-templates select="//POI"/>
											
			</table>

	</xsl:template>
	
	<xsl:template match="POI">
		<xsl:variable name="id" select="ID"/>
		<tr align="center" class="bgGray">
			<td id="{$id}">
				<a href="engine.php?opt=1&amp;act=2&amp;id={$id}">delete</a> - <a href="engine.php?opt=1&amp;id={$id}">edit</a>
			</td>
			<td>
				<xsl:value-of disable-output-escaping="yes" select="LON"></xsl:value-of>
			</td>
			<td>
				<xsl:value-of disable-output-escaping="yes" select="LAT"></xsl:value-of>
			</td>
			<td>
				<xsl:value-of disable-output-escaping="yes" select="TEXT"></xsl:value-of>
			</td>
			<td>
				<xsl:value-of disable-output-escaping="yes" select="CATEGORY"></xsl:value-of>
			</td>
		</tr>
		<tr>
			<td colspan="6" class="rowOrange1Px"></td>
		</tr>
						
	</xsl:template>

</xsl:stylesheet>
 